<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>支付方式列表</em></a>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th align='left' width="100">支付名称</th>
            <th align='left'>支付描述</th>
            <th align='center' width="100">线上支付</th>
            <th align='center' width="100">版本号</th>
						<th align='center' width="120">管理操作</th>
            </tr>
        </thead>
     <tbody>
   <?php 
   	if(isset($paymentList) && $paymentList):
   		foreach ($paymentList as $v):
   ?>
			<tr>
					<td align='left'><?php echo $v['title'];?></td>
					<td align='left'><?php echo $v['description'];?></td>
					<td align="center"><?php if($v['online']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
					<td align='center'><?php echo $v['version'];?></td>
					<td align='center'>
					<?php if($v['status']):?>
					<a href="<?php echo U('payment/payment_edit', 'pname='.$v['name']);?>">配置</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="javascript:confirmurl('<?php echo U('payment/payment_delete', 'pname='.$v['name']);?>','确认要卸载 『<?php echo $v['title']?>』 吗？')">卸载</a>
					<?php else:?>
					<a href="<?php echo U('payment/payment_edit', 'pname='.$v['name']);?>">安装</a>
					<?php endif;?>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
</div>
</div>
</body>
</html>